package com.cogent.dynamicform.facade;

import java.util.HashMap;
import java.util.List;

import com.cogent.dao.facade.BussinessDaoFacade;
import com.cogent.dynamicform.domain.BaseFormColumnDomain;
import com.cogent.dynamicform.domain.FormColumnDomain;
import com.cogent.dynamicform.domain.FormDomain;

public interface IDynamicFormFacade {	
	public FormDomain getForm(String formid);
	public void getAddValue(FormDomain formDomain, HashMap formMap);
	public List getQueryList(FormDomain formDomain, HashMap formMap);
	public String getScript(FormDomain formDomain);
	public String validator(FormDomain formDomain, HashMap dataMap);
	public String dealBussiness(BussinessDaoFacade bussinessFacade, FormDomain formDomain, HashMap dataMap);
	public String dealBussiness(BussinessDaoFacade bussinessFacade, FormDomain formDomain, HashMap dataMap, boolean ispda);
	public String genQueryField(BaseFormColumnDomain formColumnDomain, HashMap formMap);
	public String genInputField(FormColumnDomain formColumnDomain, HashMap formMap);
	public String getShowValue(BaseFormColumnDomain formColumnDomain, HashMap formMap); 
	public String genDynTableInput(FormDomain formDomain, List formColumnDomainList, HashMap formMap);
	public String genDynTableView(FormDomain formDomain, List formColumnDomainList, HashMap datamap);
	public String getDynTableView(List formColumnDomainList, List viewVlaueList);
	public void dealFormValue(FormDomain formDomain, HashMap formMap);
	public void dealFormValue(FormColumnDomain formColumnDomain, HashMap formMap);
	public String genQueryDynTable(FormDomain formDomain, List formColumnDomainList, HashMap formMap);
	public String genQueryDynTableView(FormDomain formDomain, HashMap datamap);
}
